#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int N;double A,result=1;
    cout<<"Vvedite chisla A u N: ";
    cin>>A;
    cin>>N;
   for(int i=1;i<=N;i++)
       result=result+pow(result,i);
    cout<<"Otvet: "<<result;
    return a.exec();
}
